<template>
	<yd-layout id='success' class=''>
		<img class="success_img" src="../../assets/success.png" alt="" />
		<div class="success_label c_size_30_42">支付成功</div>
		<div class="success_second c_size_30_42">{{second}}秒后自动跳转至首页</div>
	</yd-layout>
</template>

<script>
	export default{
		components:{
			
		},
		data(){
			return {
				second:3,
			}
		},
		created() {
		},
		watch: {
			
		},
		computed: {
			
		},
		mounted(){
			var setInt=setInterval(()=>{
				this.second--
				if(this.second==0){
					clearInterval(setInt)
					window.location.href=this.$root.config.shareUrl
				}
			},1000)
			
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	@import './success.scss';
</style>